$data.Entity.extend('Difficulte', {
	id: { type: 'int', key: true, required: true },	
	intitule: { type: 'string',required: true }
});

function getValueDifficultes(BD,champs,valeur){
	return BD.Niveaus.filter('it.'+champs+' == '+valeur).toArray();
}